package com.edu.lwh.pojo;

public class ThreadLocalUtil {

    private ThreadLocalUtil(){

    }
    private  static  final ThreadLocal<User> LOCAL = new ThreadLocal<User>();

    public static void set(User user){
        LOCAL.set(user);
    }

    public static User get(){
        return LOCAL.get();
    }

    public static void clear(){
        LOCAL.remove();
    }
}
